package com.qingge.springboot.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qingge.springboot.entity.Subject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xyc
 * @since 2022-04-13
 */
public interface SubjectMapper extends BaseMapper<Subject> {
    Integer getSubjectCount();

    Page<Subject> findPage(Page<Subject> page);

    Page<Subject> findPage2(Page<Subject> page);

    List<Subject> findSubjectByName(String stuName);

    List<Subject> findSubjectById(Integer id);

    String findStuName(Integer id);

    void setFlagNew(Integer id);

    void clearFlag();

    Integer showCourse(String username);

    void chooseFlag(String username);

    List<Subject> inputScore(Integer id);

    String findSubjectNum(Integer id);
}
